export const routes = [
  {
    path: "/",
    name: "Login",
    component: () => import('../components/Login.vue'),
    meta: { title: '登录', icon: 'PieChartOutlined', hidden: true },


  }, {
    path: "/:pathMatch(.*)*",
    name: "Error404",
    component: () => import('../views/App404.vue'),
    meta: {
      title: "任意路由",
      hidden: true,
      icon:'PieChartOutlined'
    }
  }
  , {
    path: "/Index",
    component: () => import('../views/Index.vue'),
    //定义元信息
    meta: { title: "首页", icon: "PieChartOutlined", authRequire: true },
    children: [
      {
        path: '/desktop',
        component: () => import('../views/desktop.vue'),
        meta: { title: '工作台', icon: 'PieChartOutlined' }
      },
      {
        path: '/dashboard',
        component: () => import('../views/dashboard.vue'),
        meta: { title: '仪表盘', icon: 'PieChartOutlined' }
      }
    ]
  },
  {
    path: "/system",
    name: "system",
    component: () => import('../views/Index.vue'),
    meta: { title: "系统管理", icon: "PieChartOutlined" },
    children: [
      {
        path: "/system/user", name: "user",
        component: () => import('../views/AppUser.vue'),
        meta: { title: "用户管理", icon: "PieChartOutlined", hidden: false }
      },
      {
        path: "/system/rolew", name: "rolew",
        component: () => import('../views/AppRole.vue'),
        meta: { title: "角色管理", icon: "PieChartOutlined", hidden: false }
      },
      {
        path: "/system/permission", name: "permission",
        component: () => import('../views/AppPermission.vue'),
        meta: { title: "权限管理", icon: "PieChartOutlined", hidden: false },
        children:[
          {
            path: "/system/permission/qx", name: "qx",
            component: () => import('../views/AppPermission.vue'),
            meta: { title: "总权限", icon: "PieChartOutlined", hidden: false }
          },
          {
            path: "/system/permission/resource", name: "resource",
            component: () => import('../views/AppResource.vue'),
            meta: { title: "资源权限", icon: "PieChartOutlined", hidden: false }
          },
          {
            path: "/system/permission/operation", name: "operation",
            component: () => import('../views/AppOperation.vue'),
            meta: { title: "操作权限", icon: "PieChartOutlined", hidden: false }
          },
        ]
      }
    ]
  },

  // 
  {
    path: "/plaintext",
    component: () => import('../views/Index.vue'),
    meta: { title: "个人页", icon: "PieChartOutlined" },
    children: [
      {
        path: "/plaintext/profilePage", name: "profilePage",
        component: () => import('../views/profilePage.vue'),
        meta: { title: "个人中心",icon: "PieChartOutlined" , hidden: false }
      },
      {
        path: "/plaintext/profilePageSettings", name: "role",
        component: () => import('../views/profilePageSettings.vue'),
        meta: { title: "个人设置", icon: "PieChartOutlined" ,hidden: false },
      }
    ]
  }

  //  


]